package T2;

public class PearText {
    public static void main(String[] args) {
        Pear pear = new Pear();
        pear.setName("梨");
        System.out.println(pear.getName());

        pear.setArea("四川");
        System.out.println(pear.getArea());

        pear.setPrice(2.5);
        System.out.println(pear.getPrice());
    }
}
